<?php
$cars=array("Volvo","BMW","Toyota");
sort($cars);
print_r($cars);

$numbers=array(4,6,2,22,11);
sort($numbers);
print_r($numbers);

$cars=array("Volvo","BMW","Toyota");
rsort($cars);
print_r($cars);

$numbers=array(4,6,2,22,11);
rsort($numbers);
print_r($numbers);

$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
asort($age);
print_r($age);

$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
ksort($age);
print_r($age);
?>